<div style="width: 1px;height: 20px;"></div>
<div class="card card-success" style="width:90%;margin: 0 auto;">
  <div class="card-header">
    <h3 class="card-title">账单添加</h3>
  </div>
  <div class="card-body">
     <form action="index.php?c=bookkeeping&m=add" METHOD="post">
        <input class="form-control form-control-lg" type="text" name="b_name" placeholder="账单名称">
        <br>
        <input class="form-control form-control-lg" type="number" name="consume_money" placeholder="账单金额">
        <br>
         <input class="form-control form-control-lg" id="b_type" type="hidden" name="b_type" value="1">
        <div class="form-group">
        <select id="isshow" class="form-control" onchange="doSome();">
          <option value="1">支出</option>
          <option value="2">收入</option>
        </select>
       </div>
       <div class="card-footer">
          <button type="submit" class="btn btn-primary">提交</button>
       </div>
     </form>
  </div>
<!-- /.card-body -->
</div>
<script>
    function doSome(){
        var isshow = $("#isshow ").val();
        $('#b_type').val(isshow);
    }

</script>